package com.zycloud.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.zycloud.facade.DemoFacade;
import com.zycloud.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;

@Service(version = "${demo.service.version}")
public class DemoFacadeImpl implements DemoFacade {

    @Autowired
    private DemoService demoService;

    @Override
    public String sayName(String name) {
        return demoService.sayName(name);
    }

    @Override
    public String hello(String name) {
        return null;
    }

}
